﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using CRC_Editor;
using NUnit.Framework;

namespace CRC_EditorTests
{
    [TestFixture]
    public class CanvasTest
    {
        /* TestList
         
          Check HeaderLine
          Create Graphics
          Add Real Canvas operations
          Check VerticalLine
          Check Drawen Header
          
         */

        [Test]
        public void TestDrawHeaderLine()
        {
            var env = CardEnvironment.Default;
            var card = env.CardFactory.Create();

            var form = new Form1();
            form.Show();

            var canvas = new Canvas(form.CreateGraphics());
            card.Draw(canvas);

            Assert.IsFalse(canvas.GetPoint(0, 0));
            Assert.IsFalse(canvas.GetPoint(5, 5));
            Assert.IsTrue(canvas.GetPoint(0, card.HeaderHeight));
        }
    }

}
